﻿
using Microsoft.VisualBasic;
using S.Common.Enums.Archives;
using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Security.Principal;

namespace S.EarTag.Domain.Model
{
    /// <summary>
    /// 产羔耳标管理表
    /// </summary>
    [SugarTable("EarTagModel")]
    public class EarTagModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int EarTagId { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        [SugarColumn(ColumnName = "WarehousingDate")]
        public DateTimeOffset? WarehousingDate { get; set; }

        /// <summary>
        /// 出生状态
        /// </summary>
        [SugarColumn(ColumnName = "BirthState")]
        public string? BirthState { get; set; }

        /// <summary>
        /// 对应品种
        /// </summary>
        [SugarColumn(ColumnName = "BreedItem")]
        public VarietyEnum BreedItem { get; set; }

        /// <summary>
        /// 耳号
        /// </summary>
        [SugarColumn(ColumnName = "EarTag")]
        public string? EarTag { get; set; }

        /// <summary>
        /// 耳号使用状态
        /// </summary>
        [SugarColumn(ColumnName = "UseState")]
        public string? UseState { get; set; } = "未使用";

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "CreateBy")]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTimeOffset? CreateDate { get; set; }


        /// <summary>
        /// 修改人
        /// </summary>
        [SugarColumn(ColumnName = "UpdateBy")]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdateDate")]
        public string? UpdateDate { get; set; }
        [SugarColumn(ColumnName = "BindState")]
        public bool BindState { get; set; }
        /// <summary>
        /// 耳号类型
        /// </summary>
        [SugarColumn(ColumnName = "EarTagType")]
        public string? EarTagType { get; set; } = "可视耳号";

    }
}
